package demo5;

public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException{
        Person person1 = new Person("张三",12);
        Person person2 =(Person) person1.clone();

        System.out.println(person1.money.m);
        person2.money.m = 2;
        System.out.println(person2.money.m);


    }
}
